package cn.tedu.mintmall.mapper;

import cn.tedu.mintmall.dto.AdminDTO;
import cn.tedu.mintmall.entity.Admin;
import cn.tedu.mintmall.vo.AdminDetailsVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper {
    int InsertAdmin(Admin admin);

    Integer getByUsername(String username);

    AdminDetailsVO getAdminDetailsVOByUsername(String username);

    void updateAdmin(AdminDTO adminDTO);

    void updateHeaderjpg(@Param("username") String username,@Param("path") String path);


}
